package com.zzyl.nursing.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component("helloJob")
public class HelloJob {

//    @Scheduled(cron = "0/5 * * * * ?") // 每5秒执行一次
    public void myJob() {
        System.out.println("helloJob");
    }
}
